<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      OpenJade-1.3.2
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;48.&nbsp;Standard Generalized Markup Language (SGML)
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="opensp.html" title="OpenSP-1.5.2">Prev</a>
          <p>
            OpenSP-1.5.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="docbook-dsssl.html" title=
          "docbook-dsssl-1.79">Next</a>
          <p>
            docbook-dsssl-1.79
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sgml.html" title=
          "Chapter&nbsp;48.&nbsp;Standard Generalized Markup Language (SGML)">
          Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="openjade" name="openjade"></a>OpenJade-1.3.2
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to OpenJade
        </h2>
        <p>
          The <span class="application">OpenJade</span> package contains a
          DSSSL engine. This is useful for SGML and XML transformations into
          RTF, TeX, SGML and XML.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/openjade/openjade-1.3.2.tar.gz">
                https://downloads.sourceforge.net/openjade/openjade-1.3.2.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 7df692e3186109cc00db6825b777201e
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 880 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 19.2 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.7 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Download
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/9.1/openjade-1.3.2-upstream-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/9.1/openjade-1.3.2-upstream-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <h3>
          OpenJade Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="opensp.html" title=
          "OpenSP-1.5.2">OpenSP-1.5.2</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/openjade">http://wiki.linuxfromscratch.org/blfs/wiki/openjade</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of OpenJade
        </h2>
        <p>
          First fix problems when building with newer compilers:
        </p>
        <pre class="userinput">
<kbd class="command">patch -Np1 -i ../openjade-1.3.2-upstream-1.patch</kbd>
</pre>
        <p>
          Now fix a compilation problem with perl-5.16 and later:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed -i -e '/getopts/{N;s#&amp;G#g#;s#do .getopts.pl.;##;}' \
       -e '/use POSIX/ause Getopt::Std;' msggen.pl</kbd>
</pre>
        <p>
          Install <span class="application">OpenJade</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">export CXXFLAGS="$CXXFLAGS -fno-lifetime-dse"            &amp;&amp;
./configure --prefix=/usr                                \
            --mandir=/usr/share/man                      \
            --enable-http                                \
            --disable-static                             \
            --enable-default-catalog=/etc/sgml/catalog   \
            --enable-default-search-path=/usr/share/sgml \
            --datadir=/usr/share/sgml/openjade-1.3.2   &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">make install                                                   &amp;&amp;
make install-man                                               &amp;&amp;
ln -v -sf openjade /usr/bin/jade                               &amp;&amp;
ln -v -sf libogrove.so /usr/lib/libgrove.so                    &amp;&amp;
ln -v -sf libospgrove.so /usr/lib/libspgrove.so                &amp;&amp;
ln -v -sf libostyle.so /usr/lib/libstyle.so                    &amp;&amp;

install -v -m644 dsssl/catalog /usr/share/sgml/openjade-1.3.2/ &amp;&amp;

install -v -m644 dsssl/*.{dtd,dsl,sgm}              \
    /usr/share/sgml/openjade-1.3.2                             &amp;&amp;

install-catalog --add /etc/sgml/openjade-1.3.2.cat  \
    /usr/share/sgml/openjade-1.3.2/catalog                     &amp;&amp;

install-catalog --add /etc/sgml/sgml-docbook.cat    \
    /etc/sgml/openjade-1.3.2.cat</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>export CXXFLAGS=...</strong></span>:
          This command prevents segmentation faults when the package is
          compiled with <span class="application">gcc-6.1</span>.
        </p>
        <p>
          <span class="command"><strong>make install-man</strong></span>:
          This command installs the <span class=
          "command"><strong>openjade</strong></span> man page.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents the building of the static library.
        </p>
        <p>
          <em class="parameter"><code>--enable-http</code></em>: This switch
          adds support for HTTP.
        </p>
        <p>
          <em class=
          "parameter"><code>--enable-default-catalog=/etc/sgml/catalog</code></em>:
          This switch sets the path to the centralized catalog.
        </p>
        <p>
          <em class=
          "parameter"><code>--enable-default-search-path</code></em>: This
          switch sets the default value of <code class=
          "envar">SGML_SEARCH_PATH</code>.
        </p>
        <p>
          <em class=
          "parameter"><code>--datadir=/usr/share/sgml/openjade-1.3.2</code></em>:
          This switch puts data files in <code class=
          "filename">/usr/share/sgml/openjade-1.3.2</code> instead of
          <code class="filename">/usr/share</code>.
        </p>
        <p>
          <span class="command"><strong>ln -v -sf ...</strong></span>: These
          commands create the <span class="application">Jade</span>
          equivalents of <span class="application">OpenJade</span>
          executables and libraries.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring OpenJade
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm45779231365808" name=
            "idm45779231365808"></a>Configuration Information
          </h4>
          <p>
            As the <code class="systemitem">root</code> user:
          </p>
          <pre class="root">
<kbd class=
"command">echo "SYSTEM \"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\" \
    \"/usr/share/xml/docbook/xml-dtd-4.5/docbookx.dtd\"" &gt;&gt; \
    /usr/share/sgml/openjade-1.3.2/catalog</kbd>
</pre>
          <p>
            This configuration is only necessary if you intend to use
            <span class="application">OpenJade</span> to process the BLFS XML
            files through DSSSL Stylesheets.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">openjade and the <span class=
              "application">Jade</span> equivalent symlink, jade</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libogrove.so, libospgrove.so,
              libostyle.so, and the <span class="application">Jade</span>
              equivalent symlinks: libgrove.so, libspgrove.so, and
              libstyle.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/share/sgml/openjade-1.3.2</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="openjade-prog" name=
                    "openjade-prog"></a><span class="term"><span class=
                    "command"><strong>openjade</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a DSSSL engine used for transformations.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="jade" name="jade"></a><span class=
                    "term"><span class=
                    "command"><strong>jade</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a symlink to <span class=
                    "command"><strong>openjade</strong></span>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 15:15:05 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="opensp.html" title="OpenSP-1.5.2">Prev</a>
          <p>
            OpenSP-1.5.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="docbook-dsssl.html" title=
          "docbook-dsssl-1.79">Next</a>
          <p>
            docbook-dsssl-1.79
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sgml.html" title=
          "Chapter&nbsp;48.&nbsp;Standard Generalized Markup Language (SGML)">
          Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
